package com.xt.mvcpilot.service;

import java.io.Serializable;
import java.util.List;

import com.xt.core.exception.ObjectCanNotSaveException;
import com.xt.core.service.BasicService;

import com.xt.mvcpilot.data.AppBasicDBObject;
import com.xt.mvcpilot.data.User;


/**
 * Generic Manager that talks to BasicDao to CRUD POJOs.
 *
 * <p>Extend this interface if you want typesafe (no casting necessary) managers
 * for your domain objects.
 *
 * <p>Extended the GenericManager from generic Service
 *
 * @author txiao
 * @version Revision: 1.0, Date: 07.06.2011
 * @param <T> a type variable
 * @param <PK> the primary key for that type
 */
public interface AppBasicService<T, PK extends Serializable>  extends BasicService<T, PK>{
	
	public void saveorupdate(T object, User currentUser) throws ObjectCanNotSaveException;

}

